package com.rybbaby.tss.platform.sysCourseSystem.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.platform.sysCourseSystem.dao.ISysCourseSystemDao;
import com.rybbaby.tss.platform.sysCourseSystem.entity.SysCourseSystem;
import com.rybbaby.tss.platform.sysCourseSystem.service.ISysCourseSystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 雷春琼
 * @description 部门数据库操作服务实现
 * @createDate 2017-08-10 下午7:57:36
 */
@Service
@Transactional
public class SysCourseSystemServiceImp extends BaseServiceImp<SysCourseSystem> implements ISysCourseSystemService {

    @Autowired
    private ISysCourseSystemDao dao;

    /**
     * 根据父级Id获取下级课程
     *
     * @param pId 父级Id
     * @return
     */
    @Override
    public List<SysCourseSystem> getChildrens(String pId) {
        return dao.getChildrens(pId);
    }
}
